<?php
include_once($cfgPaths['mod'].'mod_dates/lib/dbaDates.o.inc.php');
$ddba   = new dbaDates($udba);
$num = ($params['num'])?$params['num']:2;
$dates = $ddba->getlast($params['instance'],$num);
for ($i=0;$i<count($dates);$i++)
{
  echo '<b>'.$ddba->convDate($dates[$i]['date']).':</b><br>'.$dates[$i]['headline'].'<br>';
  if ($dates[$i]['link']) echo '[ <a href="'.$tpl->prepareLink($dates[$i]['link']).'" class="main">mehr ...</a> ]';
  if ($i < (count($dates)-1)) echo '<br><br>';
}
?>
